package com.jchy.renderit.displayable;
   
import com.jchy.renderit.core.MultiPrimitiveObject;
import com.jchy.renderit.core.Point;
import com.jchy.renderit.displayable.Triangle;

public class BoxSolve extends MultiPrimitiveObject
{
	//MultiPrimitiveObject mpo = new MultiPrimitiveObject();
	
    BoxSolve()
    {
        Triangle r1, r2, g1, g2, b1, b2, y1, y2;
        r1=new Triangle(new Point( 50,250, 50),new Point(150,250,150),new Point( 50,150,150));
        r2=new Triangle(new Point(150,250,150),new Point(150,150,250),new Point(250,250,250));
        g1=new Triangle(new Point(250,250, 50),new Point(250,150,150),new Point(150,150, 50));
        g2=new Triangle(new Point( 50,150,150),new Point(150,150,250),new Point(150,250,150));
        b1=new Triangle(new Point(150,150, 50),new Point(150, 50,150),new Point(250,150,150));
        b2=new Triangle(new Point( 50,150,150),new Point( 50, 50,250),new Point(150,150,250));
        y1=new Triangle(new Point(150,150, 50),new Point( 50, 50, 50),new Point(150, 50,150));
        y2=new Triangle(new Point(250, 50,250),new Point(250,150,150),new Point(150, 50,150));

        r1.setPrimaryColorInt(255,0,0);        
        r2.setPrimaryColorInt(255,0,0);
        g1.setPrimaryColorInt(0,255,0);
        g2.setPrimaryColorInt(0,255,0);
        b1.setPrimaryColorInt(0,0,255);
        b2.setPrimaryColorInt(0,0,255);
        y1.setPrimaryColorInt(255,255,0);
        y2.setPrimaryColorInt(255,255,0);

        multi.addElement(r1);
        multi.addElement(r2);
        multi.addElement(g1);
        multi.addElement(g2);
        multi.addElement(b1);
        multi.addElement(b2);
        multi.addElement(y1);
        multi.addElement(y2);
         
    }
    
}
